﻿#ifndef TCPLISTENER_H
#define TCPLISTENER_H

#include <qtcpserver.h>
#include <qtimer.h>

class TcpIOer;
class TcpListener :  public QTcpServer
{
  Q_OBJECT
public:
  explicit TcpListener();
  virtual ~TcpListener();
signals:
  void signal_newConnection(TcpIOer* newTCPSocket);//TcpIOer
protected:
  virtual void incomingConnection(qintptr socketDescriptor)override;//重写默认socketDescriptor处理函数
};

#endif // TCPLISTENER_H
